# -*- coding: utf-8 -*-
import os
from flask import Flask, session
from flask_sqlalchemy import SQLAlchemy
from myblog.settings import DebugSetting
from flask_cors import *

basedir = os.path.abspath(os.path.dirname(__file__))


app = Flask(__name__)
#import  os
# print os.environ.keys()
# print os.environ.get('FLASKR_SETTINGS')
# 加载配置文件内容
app.config.from_object(DebugSetting)  # 模块下的setting文件名，不用加py后缀
CORS(app, supports_credentials=True)
# 创建数据库对象
db = SQLAlchemy(app)
